package com.github.baichuan.application.scaffold.rest.domain.identity;

import com.github.baichuan.application.scaffold.rest.domain.application.Realm;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Entity
@Getter
@Setter
public class Member {
    @Id
    private String id;

    @ManyToOne
    @JoinColumn(name = "realm_id")
    private Realm realm;

    private String loginName;

    private String password;

    private String salt;

    private String name;

    private String email;

    private String mobile;

    private LocalDateTime createTime;

    private LocalDate passwordUpdateDate;

    private String dingUnionId;

}
